package com.molin.edu.info.manager.dao;

import com.molin.edu.info.manager.domain.Student;

import java.util.ArrayList;

/*
 * 修改等于删除后再添加
 *  */
public class StudentDao extends BaseStudentDao{

    public boolean modifyStudent(Student st) {
        boolean dropResult= dropStudentInfo(fetchOne(st.getId()));
        boolean result=false;
        if(dropResult){
            result=addStudent(st);
        }else {
            result=false;
        }
        return result;
    }
}
